//
//  qiye.m
//  PASystem
//
//  Created by michael on 16/9/19.
//  Copyright © 2016年 czd. All rights reserved.
//

#import "qiye.h"

@implementation qiye

- (id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
    UIColor *myColor = [UIColor colorWithWhite:0.8 alpha:0.3];
self.backgroundColor = myColor;

          }
    return self;
}
- (void)setId:(NSString *)id{


//NSLog(@"11%@",id);
_id = id;
 [self initview];
[self request];
 
}

- (void)initview{
_tableview = [[UITableView alloc]initWithFrame:CGRectZero style:UITableViewStylePlain];
_tableview.frame = CGRectMake(10,10, KScreenWidth-20, KScreenHeight-64-46-40-20);
_tableview.backgroundColor = [UIColor whiteColor];
_tableview.dataSource = self;
_tableview.delegate = self;
self.tableview.bounces = NO;
[self addSubview:_tableview];

}




- (void)request{
NSString * userId = [[NSUserDefaults standardUserDefaults]objectForKey:@"userId"];
    NSString * pwdId = [[NSUserDefaults standardUserDefaults]objectForKey:@"pwdId"];
    NSString * userHumber = [[NSUserDefaults standardUserDefaults]objectForKey:@"userHumber"];
    
 NSString *json =[NSString stringWithFormat: @"{'action':qyzMch,'service':ZCQService, 'userName':'%@','password':'%@', 'vaueJson':'{userid :%@,id:%@}'}",userId,pwdId,userHumber,_id];
     NSArray * array = @[@{@"arg0":json}];
    [HttpTools requestWithURL:BaseURL arrays:array method:Basemethod success:^(id JSON) {
    
     NSDictionary *dic = JSON[@"reason"];
        NSDictionary *dict = dic[@"attrs"];
       _dic = dict;
    
 [self.tableview reloadData];
    }
     failure:^(NSError *error) {
        

    }];
}
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
if (indexPath.row==0) {
 
     UITableViewCell* cell = [[UITableViewCell alloc]init];
     cell.selectionStyle = UITableViewCellSelectionStyleNone;
      UILabel *label = [[UILabel alloc]initWithFrame:CGRectMake(0, 0, 100, cell.contentView.height)];
    label.text = @"注册码:";
         label.font = [UIFont systemFontOfSize:13];
    [cell.contentView addSubview:label];
 UILabel *label2= [[UILabel alloc]initWithFrame:CGRectMake(label.right, label.top, KScreenWidth-20-100, label.height)];
 label2.textAlignment = NSTextAlignmentRight;
    label2.text = [NSString stringWithFormat:@"%@",_dic[@"REGCODE"]];
     label2.font = [UIFont systemFontOfSize:12];
    [cell.contentView addSubview:label2];
    return cell;
 
 }
 if (indexPath.row==1) {
 
     UITableViewCell* cell = [[UITableViewCell alloc]init];
     cell.selectionStyle = UITableViewCellSelectionStyleNone;
      UILabel *label = [[UILabel alloc]initWithFrame:CGRectMake(0, 0, 100, cell.contentView.height)];
    label.text = @"组织机构代码:";
         label.font = [UIFont systemFontOfSize:13];
    [cell.contentView addSubview:label];
 UILabel *label2= [[UILabel alloc]initWithFrame:CGRectMake(label.right, label.top, KScreenWidth-20-100, label.height)];
 label2.textAlignment = NSTextAlignmentRight;
    label2.text = [NSString stringWithFormat:@"%@",_dic[@"ORGCODE"]];
     label2.font = [UIFont systemFontOfSize:12];
    [cell.contentView addSubview:label2];
    return cell;
 
 }

  if (indexPath.row==2) {
 
     UITableViewCell* cell = [[UITableViewCell alloc]init];
     cell.selectionStyle = UITableViewCellSelectionStyleNone;
      UILabel *label = [[UILabel alloc]initWithFrame:CGRectMake(0, 0, 100, cell.contentView.height)];
    label.text = @"企业中文名:";
         label.font = [UIFont systemFontOfSize:13];
    [cell.contentView addSubview:label];
 UILabel *label2= [[UILabel alloc]initWithFrame:CGRectMake(label.right, label.top, KScreenWidth-20-100, label.height)];
 label2.textAlignment = NSTextAlignmentRight;
    label2.text = [NSString stringWithFormat:@"%@",_dic[@"CHINESENAME"]];
     label2.font = [UIFont systemFontOfSize:12];
    [cell.contentView addSubview:label2];
    return cell;
 
 }  if (indexPath.row==3) {
 
     UITableViewCell* cell = [[UITableViewCell alloc]init];
     cell.selectionStyle = UITableViewCellSelectionStyleNone;
      UILabel *label = [[UILabel alloc]initWithFrame:CGRectMake(0, 0, 100, cell.contentView.height)];
    label.text = @"企业英文名:";
         label.font = [UIFont systemFontOfSize:13];
    [cell.contentView addSubview:label];
 UILabel *label2= [[UILabel alloc]initWithFrame:CGRectMake(label.right, label.top, KScreenWidth-20-100, label.height)];
 label2.textAlignment = NSTextAlignmentRight;
    label2.text = [NSString stringWithFormat:@"%@",_dic[@"ENGLISHNAME"]];
     label2.font = [UIFont systemFontOfSize:12];
    [cell.contentView addSubview:label2];
    return cell;
 
 }
if (indexPath.row==4) {
 
     UITableViewCell* cell = [[UITableViewCell alloc]init];
     cell.selectionStyle = UITableViewCellSelectionStyleNone;
      UILabel *label = [[UILabel alloc]initWithFrame:CGRectMake(0, 0, 100, cell.contentView.height)];
    label.text = @"业务联络员名称:";
         label.font = [UIFont systemFontOfSize:13];
    [cell.contentView addSubview:label];
 UILabel *label2= [[UILabel alloc]initWithFrame:CGRectMake(label.right, label.top, KScreenWidth-20-100, label.height)];
 label2.textAlignment = NSTextAlignmentRight;
    label2.text = [NSString stringWithFormat:@"%@",_dic[@"USERNAME"]];
     label2.font = [UIFont systemFontOfSize:12];
    [cell.contentView addSubview:label2];
    return cell;
 
 }
 if (indexPath.row==5) {
 
     UITableViewCell* cell = [[UITableViewCell alloc]init];
     cell.selectionStyle = UITableViewCellSelectionStyleNone;
      UILabel *label = [[UILabel alloc]initWithFrame:CGRectMake(0, 0, 100, cell.contentView.height)];
    label.text = @"业务联络员电话:";
         label.font = [UIFont systemFontOfSize:13];
    [cell.contentView addSubview:label];
 UILabel *label2= [[UILabel alloc]initWithFrame:CGRectMake(label.right, label.top, KScreenWidth-20-100, label.height)];
 label2.textAlignment = NSTextAlignmentRight;
    label2.text = [NSString stringWithFormat:@"%@",_dic[@"USERPHONE"]];
     label2.font = [UIFont systemFontOfSize:12];
    [cell.contentView addSubview:label2];
    return cell;
 
 }

 if (indexPath.row==6) {
 
     UITableViewCell* cell = [[UITableViewCell alloc]init];
     cell.selectionStyle = UITableViewCellSelectionStyleNone;
      UILabel *label = [[UILabel alloc]initWithFrame:CGRectMake(0, 0, 100, cell.contentView.height)];
    label.text = @"业务联络员传真:";
         label.font = [UIFont systemFontOfSize:13];
    [cell.contentView addSubview:label];
 UILabel *label2= [[UILabel alloc]initWithFrame:CGRectMake(label.right, label.top, KScreenWidth-20-100, label.height)];
 label2.textAlignment = NSTextAlignmentRight;
    label2.text = [NSString stringWithFormat:@"%@",_dic[@"USERFAX"]];
     label2.font = [UIFont systemFontOfSize:12];
    [cell.contentView addSubview:label2];
    return cell;
 
 }
 if (indexPath.row==7) {
 
     UITableViewCell* cell = [[UITableViewCell alloc]init];
     cell.selectionStyle = UITableViewCellSelectionStyleNone;
      UILabel *label = [[UILabel alloc]initWithFrame:CGRectMake(0, 0, 100, cell.contentView.height)];
    label.text = @"业务联络员传真:";
         label.font = [UIFont systemFontOfSize:13];
    [cell.contentView addSubview:label];
 UILabel *label2= [[UILabel alloc]initWithFrame:CGRectMake(label.right, label.top, KScreenWidth-20-100, label.height)];
 label2.textAlignment = NSTextAlignmentRight;
    label2.text = [NSString stringWithFormat:@"%@",_dic[@"USERFAX"]];
     label2.font = [UIFont systemFontOfSize:12];
    [cell.contentView addSubview:label2];
    return cell;
 
 }
 if (indexPath.row==8) {
 
     UITableViewCell* cell = [[UITableViewCell alloc]init];
     cell.selectionStyle = UITableViewCellSelectionStyleNone;
      UILabel *label = [[UILabel alloc]initWithFrame:CGRectMake(0, 0, 100, cell.contentView.height)];
    label.text = @"业务联络员QQ:";
         label.font = [UIFont systemFontOfSize:13];
    [cell.contentView addSubview:label];
 UILabel *label2= [[UILabel alloc]initWithFrame:CGRectMake(label.right, label.top, KScreenWidth-20-100, label.height)];
 label2.textAlignment = NSTextAlignmentRight;
    label2.text = [NSString stringWithFormat:@"%@",_dic[@"USERQQ"]];
     label2.font = [UIFont systemFontOfSize:12];
    [cell.contentView addSubview:label2];
    return cell;
 
 }
if (indexPath.row==9) {
 
     UITableViewCell* cell = [[UITableViewCell alloc]init];
     cell.selectionStyle = UITableViewCellSelectionStyleNone;
      UILabel *label = [[UILabel alloc]initWithFrame:CGRectMake(0, 0, 100, cell.contentView.height)];
    label.text = @"网址:";
         label.font = [UIFont systemFontOfSize:13];
    [cell.contentView addSubview:label];
 UILabel *label2= [[UILabel alloc]initWithFrame:CGRectMake(label.right, label.top, KScreenWidth-20-100, label.height)];
 label2.textAlignment = NSTextAlignmentRight;
    label2.text = [NSString stringWithFormat:@"%@",_dic[@"WEBSITE"]];
     label2.font = [UIFont systemFontOfSize:12];
    [cell.contentView addSubview:label2];
    return cell;
 
 }
if (indexPath.row==10) {
 
     UITableViewCell* cell = [[UITableViewCell alloc]init];
     cell.selectionStyle = UITableViewCellSelectionStyleNone;
      UILabel *label = [[UILabel alloc]initWithFrame:CGRectMake(0, 0, 100, cell.contentView.height)];
    label.text = @"地址:";
         label.font = [UIFont systemFontOfSize:13];
    [cell.contentView addSubview:label];
 UILabel *label2= [[UILabel alloc]initWithFrame:CGRectMake(label.right, label.top, KScreenWidth-20-100, label.height)];
 label2.textAlignment = NSTextAlignmentRight;
    label2.text = [NSString stringWithFormat:@"%@",_dic[@"ADDRESS"]];
     label2.font = [UIFont systemFontOfSize:12];
    [cell.contentView addSubview:label2];
    return cell;
 
 }
if (indexPath.row==11) {
 
     UITableViewCell* cell = [[UITableViewCell alloc]init];
     cell.selectionStyle = UITableViewCellSelectionStyleNone;
      UILabel *label = [[UILabel alloc]initWithFrame:CGRectMake(0, 0, 100, cell.contentView.height)];
    label.text = @"企业法人代表:";
         label.font = [UIFont systemFontOfSize:13];
    [cell.contentView addSubview:label];
 UILabel *label2= [[UILabel alloc]initWithFrame:CGRectMake(label.right, label.top, KScreenWidth-20-100, label.height)];
 label2.textAlignment = NSTextAlignmentRight;
    label2.text = [NSString stringWithFormat:@"%@",_dic[@"REPRESENTATIVE"]];
     label2.font = [UIFont systemFontOfSize:12];
    [cell.contentView addSubview:label2];
    return cell;
 
 }
 if (indexPath.row==12) {
 
     UITableViewCell* cell = [[UITableViewCell alloc]init];
     cell.selectionStyle = UITableViewCellSelectionStyleNone;
      UILabel *label = [[UILabel alloc]initWithFrame:CGRectMake(0, 0, 100, cell.contentView.height)];
    label.text = @"员工人数:";
         label.font = [UIFont systemFontOfSize:13];
    [cell.contentView addSubview:label];
 UILabel *label2= [[UILabel alloc]initWithFrame:CGRectMake(label.right, label.top, KScreenWidth-20-100, label.height)];
 label2.textAlignment = NSTextAlignmentRight;
    label2.text = [NSString stringWithFormat:@"%@",_dic[@"EMPLOYEESNUM"]];
     label2.font = [UIFont systemFontOfSize:12];
    [cell.contentView addSubview:label2];
    return cell;
 
 }
if (indexPath.row==13) {
 
     UITableViewCell* cell = [[UITableViewCell alloc]init];
     cell.selectionStyle = UITableViewCellSelectionStyleNone;
      UILabel *label = [[UILabel alloc]initWithFrame:CGRectMake(0, 0, 100, cell.contentView.height)];
    label.text = @"公司资产:";
         label.font = [UIFont systemFontOfSize:13];
    [cell.contentView addSubview:label];
 UILabel *label2= [[UILabel alloc]initWithFrame:CGRectMake(label.right, label.top, KScreenWidth-20-100, label.height)];
 label2.textAlignment = NSTextAlignmentRight;
    label2.text = [NSString stringWithFormat:@"%@",_dic[@"NETASSETS"]];
     label2.font = [UIFont systemFontOfSize:12];
    [cell.contentView addSubview:label2];
    return cell;
 
 }
 if (indexPath.row==13) {
 
     UITableViewCell* cell = [[UITableViewCell alloc]init];
     cell.selectionStyle = UITableViewCellSelectionStyleNone;
      UILabel *label = [[UILabel alloc]initWithFrame:CGRectMake(0, 0, 100, cell.contentView.height)];
    label.text = @"公司性质:";
         label.font = [UIFont systemFontOfSize:13];
    [cell.contentView addSubview:label];
    NSString *string8 = [NSString string];

    NSString *string =[NSString stringWithFormat:@"%@",_dic[@"NATURE"]];
if ([string rangeOfString:@"1"].length>0) {
    string8 = @"国有";
    }
else if ([string rangeOfString:@"2"].length>0){

string8 = [NSString stringWithFormat:@"%@集体",string8];
}
else if ([string rangeOfString:@"3"].length>0){

string8 = [NSString stringWithFormat:@"%@民营",string8];
}else if ([string rangeOfString:@"4"].length>0){

string8 = [NSString stringWithFormat:@"%@外资(含港、澳、台)",string8];
}else if ([string rangeOfString:@"5"].length>0){

string8 = [NSString stringWithFormat:@"%@有限责任公司",string8];
}else if ([string rangeOfString:@"6"].length>0){

string8 = [NSString stringWithFormat:@"%@股份有限公司",string8];
}else if ([string rangeOfString:@"7"].length>0){

string8 = [NSString stringWithFormat:@"%@上市公司",string8];
}
else if ([string rangeOfString:@"8"].length>0){

string8 = [NSString stringWithFormat:@"%@非上市公司",string8];
}else if ([string rangeOfString:@"9"].length>0){

string8 = [NSString stringWithFormat:@"%@其他类型",string8];
}


    
    
 UILabel *label2= [[UILabel alloc]initWithFrame:CGRectMake(label.right, label.top, KScreenWidth-20-100, label.height)];
 label2.textAlignment = NSTextAlignmentRight;
    label2.text = string8;
     label2.font = [UIFont systemFontOfSize:12];
    [cell.contentView addSubview:label2];
    return cell;
 
 }
if (indexPath.row==15) {
 
     UITableViewCell* cell = [[UITableViewCell alloc]init];
     cell.selectionStyle = UITableViewCellSelectionStyleNone;
      UILabel *label = [[UILabel alloc]initWithFrame:CGRectMake(0, 0, 100, cell.contentView.height)];
    label.text = @"所属行业:";
         label.font = [UIFont systemFontOfSize:13];
    [cell.contentView addSubview:label];
 UILabel *label2= [[UILabel alloc]initWithFrame:CGRectMake(label.right, label.top, KScreenWidth-20-100, label.height)];
 label2.textAlignment = NSTextAlignmentRight;
    label2.text = [NSString stringWithFormat:@"%@",_dic[@"INDUSTRY"]];
     label2.font = [UIFont systemFontOfSize:12];
    [cell.contentView addSubview:label2];
    return cell;
 
 }
 if (indexPath.row==16) {
 
     UITableViewCell* cell = [[UITableViewCell alloc]init];
     cell.selectionStyle = UITableViewCellSelectionStyleNone;
      UILabel *label = [[UILabel alloc]initWithFrame:CGRectMake(0, 0, 100, cell.contentView.height)];
    label.text = @"经营产品和服务简介:";
    label.numberOfLines = 0;
         label.font = [UIFont systemFontOfSize:13];
    [cell.contentView addSubview:label];
 UILabel *label2= [[UILabel alloc]initWithFrame:CGRectMake(label.right, label.top, KScreenWidth-20-100, label.height)];
 label2.textAlignment = NSTextAlignmentRight;
    label2.text = [NSString stringWithFormat:@"%@",_dic[@"DESCRIPTION"]];
     label2.font = [UIFont systemFontOfSize:12];
    [cell.contentView addSubview:label2];
    return cell;
 
 }
 if (indexPath.row==17) {
 
     UITableViewCell* cell = [[UITableViewCell alloc]init];
     cell.selectionStyle = UITableViewCellSelectionStyleNone;
      UILabel *label = [[UILabel alloc]initWithFrame:CGRectMake(0, 0, 100, cell.contentView.height)];
    label.text = @"质量标准:";
         label.font = [UIFont systemFontOfSize:13];
    [cell.contentView addSubview:label];
 UILabel *label2= [[UILabel alloc]initWithFrame:CGRectMake(label.right, label.top, KScreenWidth-20-100, label.height)];
 label2.textAlignment = NSTextAlignmentRight;
    label2.text = [NSString stringWithFormat:@"%@",_dic[@"QUALITY"]];
     label2.font = [UIFont systemFontOfSize:12];
    [cell.contentView addSubview:label2];
    return cell;
 
 }
 if (indexPath.row==18) {
 
     UITableViewCell* cell = [[UITableViewCell alloc]init];
     cell.selectionStyle = UITableViewCellSelectionStyleNone;
      UILabel *label = [[UILabel alloc]initWithFrame:CGRectMake(0, 0, 100, cell.contentView.height)];
    label.text = @"上年营业额:";
    label.numberOfLines = 0;
         label.font = [UIFont systemFontOfSize:13];
    [cell.contentView addSubview:label];
 UILabel *label2= [[UILabel alloc]initWithFrame:CGRectMake(label.right, label.top, KScreenWidth-20-100, label.height)];
 label2.textAlignment = NSTextAlignmentRight;
    label2.text = [NSString stringWithFormat:@"%@万美元",_dic[@"TURNOVERLASTYEAR"]];
     label2.font = [UIFont systemFontOfSize:12];
    [cell.contentView addSubview:label2];
    return cell;
 
 }
 if (indexPath.row==19) {
 
     UITableViewCell* cell = [[UITableViewCell alloc]init];
     cell.selectionStyle = UITableViewCellSelectionStyleNone;
      UILabel *label = [[UILabel alloc]initWithFrame:CGRectMake(0, 0, 100, cell.contentView.height)];
    label.text = @"上年进口额:";
    label.numberOfLines = 0;
         label.font = [UIFont systemFontOfSize:13];
    [cell.contentView addSubview:label];
 UILabel *label2= [[UILabel alloc]initWithFrame:CGRectMake(label.right, label.top, KScreenWidth-20-100, label.height)];
 label2.textAlignment = NSTextAlignmentRight;
    label2.text = [NSString stringWithFormat:@"%@万美元",_dic[@"IMPORTSLASTYEAR"]];
     label2.font = [UIFont systemFontOfSize:12];
    [cell.contentView addSubview:label2];
    return cell;
 
 }
  if (indexPath.row==20) {
 
     UITableViewCell* cell = [[UITableViewCell alloc]init];
     cell.selectionStyle = UITableViewCellSelectionStyleNone;
      UILabel *label = [[UILabel alloc]initWithFrame:CGRectMake(0, 0, 100, cell.contentView.height)];
    label.text = @"主要进口对象国:";
    label.numberOfLines = 0;
         label.font = [UIFont systemFontOfSize:13];
    [cell.contentView addSubview:label];
 UILabel *label2= [[UILabel alloc]initWithFrame:CGRectMake(label.right, label.top, KScreenWidth-20-100, label.height)];
 label2.textAlignment = NSTextAlignmentRight;
    label2.text = [NSString stringWithFormat:@"%@",_dic[@"IMPORTECOUNTRIES"]];
     label2.font = [UIFont systemFontOfSize:12];
         label2.numberOfLines = 0;

    [cell.contentView addSubview:label2];
    return cell;
 
 }
 
 if (indexPath.row==21) {
 
     UITableViewCell* cell = [[UITableViewCell alloc]init];
     cell.selectionStyle = UITableViewCellSelectionStyleNone;
      UILabel *label = [[UILabel alloc]initWithFrame:CGRectMake(0, 0, 100, cell.contentView.height)];
    label.text = @"主要出口国:";
    label.numberOfLines = 0;
         label.font = [UIFont systemFontOfSize:13];
    [cell.contentView addSubview:label];
 UILabel *label2= [[UILabel alloc]initWithFrame:CGRectMake(label.right, label.top, KScreenWidth-20-100, label.height)];
 label2.textAlignment = NSTextAlignmentRight;
    label2.text = [NSString stringWithFormat:@"%@",_dic[@"EXPORTECOUNTRIES"]];
     label2.font = [UIFont systemFontOfSize:12];
         label2.numberOfLines = 0;

    [cell.contentView addSubview:label2];
    return cell;
 
 }

 
 
 
 if (indexPath.row==22) {
 
     UITableViewCell* cell = [[UITableViewCell alloc]init];
     cell.selectionStyle = UITableViewCellSelectionStyleNone;
      UILabel *label = [[UILabel alloc]initWithFrame:CGRectMake(0, 0, 100, cell.contentView.height)];
    label.text = @"出口产品:";
    label.numberOfLines = 0;
         label.font = [UIFont systemFontOfSize:13];
    [cell.contentView addSubview:label];
 UILabel *label2= [[UILabel alloc]initWithFrame:CGRectMake(label.right, label.top, KScreenWidth-20-100, label.height)];
 label2.textAlignment = NSTextAlignmentRight;
    label2.text = [NSString stringWithFormat:@"%@",_dic[@"IMPORTEDPRODUCTS"]];
     label2.font = [UIFont systemFontOfSize:12];
         label2.numberOfLines = 0;

    [cell.contentView addSubview:label2];
    return cell;
 
 }
 if (indexPath.row==23) {
 
     UITableViewCell* cell = [[UITableViewCell alloc]init];
     cell.selectionStyle = UITableViewCellSelectionStyleNone;
      UILabel *label = [[UILabel alloc]initWithFrame:CGRectMake(0, 0, 100, cell.contentView.height)];
    label.text = @"与外方合作经验:";
    label.numberOfLines = 0;
         label.font = [UIFont systemFontOfSize:13];
    [cell.contentView addSubview:label];
 UILabel *label2= [[UILabel alloc]initWithFrame:CGRectMake(label.right, label.top, KScreenWidth-20-100, label.height)];
 label2.textAlignment = NSTextAlignmentRight;
    label2.text = [NSString stringWithFormat:@"%@",_dic[@"EXPERIENCE"]];
     label2.font = [UIFont systemFontOfSize:12];
         label2.numberOfLines = 0;

    [cell.contentView addSubview:label2];
    return cell;
 
 }
 
 if (indexPath.row==24) {
 
     UITableViewCell* cell = [[UITableViewCell alloc]init];
     cell.selectionStyle = UITableViewCellSelectionStyleNone;
      UILabel *label = [[UILabel alloc]initWithFrame:CGRectMake(0, 0, 100, cell.contentView.height)];
    label.text = @"希望与外方企业合作方式:";
    label.numberOfLines = 0;
         label.font = [UIFont systemFontOfSize:13];
    [cell.contentView addSubview:label];
 UILabel *label2= [[UILabel alloc]initWithFrame:CGRectMake(label.right, label.top, KScreenWidth-20-100, label.height)];
 label2.textAlignment = NSTextAlignmentRight;
 if([[NSString stringWithFormat:@"%@",_dic[@"COOPERATIONMETHOD"]]isEqualToString:@"1"]){
  label2.text = @"项目投资";
 
 }if([[NSString stringWithFormat:@"%@",_dic[@"COOPERATIONMETHOD"]]isEqualToString:@"2"]){
  label2.text = @"技术转让、研究开发";
 
 }if([[NSString stringWithFormat:@"%@",_dic[@"COOPERATIONMETHOD"]]isEqualToString:@"3"]){
  label2.text = @"企业并购";
 
 }if([[NSString stringWithFormat:@"%@",_dic[@"COOPERATIONMETHOD"]]isEqualToString:@"4"]){
  label2.text = @"品牌合作或专利许可";
 
 }if([[NSString stringWithFormat:@"%@",_dic[@"COOPERATIONMETHOD"]]isEqualToString:@"5"]){
  label2.text = @"产品和服务分包";
 
 }if([[NSString stringWithFormat:@"%@",_dic[@"COOPERATIONMETHOD"]]isEqualToString:@"5"]){
  label2.text = @"设立分支机构和营销网点";
 
 }if([[NSString stringWithFormat:@"%@",_dic[@"COOPERATIONMETHOD"]]isEqualToString:@"5"]){
  label2.text = @"其它";
 
 }
 
   
     label2.font = [UIFont systemFontOfSize:12];
         label2.numberOfLines = 0;

    [cell.contentView addSubview:label2];
    return cell;
 
 }
 if (indexPath.row==25) {
 
     UITableViewCell* cell = [[UITableViewCell alloc]init];
     cell.selectionStyle = UITableViewCellSelectionStyleNone;
      UILabel *label = [[UILabel alloc]initWithFrame:CGRectMake(0, 0, 100, cell.contentView.height)];
    label.text = @"希望与外方企业合作内容:";
    label.numberOfLines = 0;
         label.font = [UIFont systemFontOfSize:13];
    [cell.contentView addSubview:label];
 UILabel *label2= [[UILabel alloc]initWithFrame:CGRectMake(label.right, label.top, KScreenWidth-20-100, label.height)];
 label2.textAlignment = NSTextAlignmentRight;
    label2.text = [NSString stringWithFormat:@"%@",_dic[@"COOPERATIONCONTENT"]];
     label2.font = [UIFont systemFontOfSize:12];
         label2.numberOfLines = 0;

    [cell.contentView addSubview:label2];
    return cell;
 
 }
 if (indexPath.row==26) {
 
     UITableViewCell* cell = [[UITableViewCell alloc]init];
     cell.selectionStyle = UITableViewCellSelectionStyleNone;
      UILabel *label = [[UILabel alloc]initWithFrame:CGRectMake(0, 0, 100, cell.contentView.height)];
    label.text = @"希望与来自哪个行业的外方企业洽谈:";
    label.numberOfLines = 0;
         label.font = [UIFont systemFontOfSize:13];
    [cell.contentView addSubview:label];
 UILabel *label2= [[UILabel alloc]initWithFrame:CGRectMake(label.right, label.top, KScreenWidth-20-100, label.height)];
 label2.textAlignment = NSTextAlignmentRight;
    label2.text = [NSString stringWithFormat:@"%@",_dic[@"CHAT"]];
     label2.font = [UIFont systemFontOfSize:12];
         label2.numberOfLines = 0;

    [cell.contentView addSubview:label2];
    return cell;
 
 }
 if (indexPath.row==27) {
 
     UITableViewCell* cell = [[UITableViewCell alloc]init];
     cell.selectionStyle = UITableViewCellSelectionStyleNone;
      UILabel *label = [[UILabel alloc]initWithFrame:CGRectMake(0, 0, 100, cell.contentView.height)];
    label.text = @"我方公司能提供给对方合作伙伴的优惠条件:";
    label.numberOfLines = 0;
         label.font = [UIFont systemFontOfSize:13];
    [cell.contentView addSubview:label];
 UILabel *label2= [[UILabel alloc]initWithFrame:CGRectMake(label.right, label.top, KScreenWidth-20-100, label.height)];
 label2.textAlignment = NSTextAlignmentRight;
    label2.text = [NSString stringWithFormat:@"%@",_dic[@"SHIPPINGCONDITIONS"]];
     label2.font = [UIFont systemFontOfSize:12];
         label2.numberOfLines = 0;

    [cell.contentView addSubview:label2];
    return cell;
 
 }
if (indexPath.row==28) {
 
     UITableViewCell* cell = [[UITableViewCell alloc]init];
     cell.selectionStyle = UITableViewCellSelectionStyleNone;
      UILabel *label = [[UILabel alloc]initWithFrame:CGRectMake(0, 0, 100, cell.contentView.height)];
    label.text = @"其他需要说明事项:";
    label.numberOfLines = 0;
         label.font = [UIFont systemFontOfSize:13];
    [cell.contentView addSubview:label];
 UILabel *label2= [[UILabel alloc]initWithFrame:CGRectMake(label.right, label.top, KScreenWidth-20-100, label.height)];
 label2.textAlignment = NSTextAlignmentRight;
    label2.text = [NSString stringWithFormat:@"%@",_dic[@"OTHERREMARK"]];
     label2.font = [UIFont systemFontOfSize:12];
         label2.numberOfLines = 0;

    [cell.contentView addSubview:label2];
    return cell;
 
 }
if (indexPath.row==29) {
 
     UITableViewCell* cell = [[UITableViewCell alloc]init];
     cell.selectionStyle = UITableViewCellSelectionStyleNone;
      UILabel *label = [[UILabel alloc]initWithFrame:CGRectMake(0, 0, 100, cell.contentView.height)];
    label.text = @"以往参团情况:";
    label.numberOfLines = 0;
         label.font = [UIFont systemFontOfSize:13];
    [cell.contentView addSubview:label];
 UILabel *label2= [[UILabel alloc]initWithFrame:CGRectMake(label.right, label.top, KScreenWidth-20-100, label.height)];
 label2.textAlignment = NSTextAlignmentRight;
    label2.text = [NSString stringWithFormat:@"%@",_dic[@"PASTCASES"]];
     label2.font = [UIFont systemFontOfSize:12];
         label2.numberOfLines = 0;

    [cell.contentView addSubview:label2];
    return cell;
 
 }
if (indexPath.row==30) {
 
     UITableViewCell* cell = [[UITableViewCell alloc]init];
     cell.selectionStyle = UITableViewCellSelectionStyleNone;
      UILabel *label = [[UILabel alloc]initWithFrame:CGRectMake(0, 0, 100, cell.contentView.height)];
    label.text = @"企业简介(中文):";
    label.numberOfLines = 0;
         label.font = [UIFont systemFontOfSize:13];
    [cell.contentView addSubview:label];
CGFloat titleSize = [OAToolBox sizebyText:_dic[@"ZW_HONOR"] font:12 minsWidth:120];

      if (titleSize<44) {
    titleSize =  cell.height;
}else{
titleSize = titleSize;

}

 UILabel *label2= [[UILabel alloc]initWithFrame:CGRectMake(label.right, label.top, KScreenWidth-20-100,titleSize)]; label2.textAlignment = NSTextAlignmentRight;
    label2.text = [NSString stringWithFormat:@"%@",_dic[@"ZW_HONOR"]];
     label2.font = [UIFont systemFontOfSize:12];
         label2.numberOfLines = 0;

    [cell.contentView addSubview:label2];
    return cell;
 
 }
else {
 
     UITableViewCell* cell = [[UITableViewCell alloc]init];
     cell.selectionStyle = UITableViewCellSelectionStyleNone;
      UILabel *label = [[UILabel alloc]initWithFrame:CGRectMake(0, 0, 100, cell.contentView.height)];
    label.text = @"企业简介(英文):";
    label.numberOfLines = 0;
         label.font = [UIFont systemFontOfSize:13];
    [cell.contentView addSubview:label];
CGFloat titleSize = [OAToolBox sizebyText:_dic[@"ZW_SYNOPSIS"] font:12 minsWidth:120];

      if (titleSize<44) {
    titleSize =  cell.height;
}else{
titleSize = titleSize;

}

 UILabel *label2= [[UILabel alloc]initWithFrame:CGRectMake(label.right, label.top, KScreenWidth-20-100,titleSize)];
  label2.textAlignment = NSTextAlignmentRight;
  label2.text = [NSString stringWithFormat:@"%@",_dic[@"ZW_SYNOPSIS"]];
     label2.font = [UIFont systemFontOfSize:12];
         label2.numberOfLines = 0;

    [cell.contentView addSubview:label2];
    return cell;
 
 }

}

- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath
{
CGFloat H = 44;
if (indexPath.row == 29){
 CGFloat titleSize = [OAToolBox sizebyText:_dic[@"ZW_HONOR"] font:12 minsWidth:120];


//CGFloat titleSize = 180;
if (titleSize<44) {
    return 44;
}else{
return titleSize;

}


}

else if (indexPath.row == 30){
 CGFloat titleSize = [OAToolBox sizebyText:_dic[@"ZW_SYNOPSIS"] font:12 minsWidth:120];


//CGFloat titleSize = 180;
if (titleSize<44) {
    return 44;
}else{
return titleSize;

}


}
else{

return H;
}

}






- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView
{
    return 1;
}
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{
    return 32;
}

@end
